#include"processbar.h"
void process()
{
//    printf("hello world\n");

   char buffer[NUM];
   memset(buffer,'\0',sizeof(buffer));
   int cnt = 0;
   while(cnt <= 100)
   {
      // printf("[%-100s][%-2d%%][%c]\r",buffer,cnt,LABLES[cnt%4]);
       printf("[%-100s][%-2d%%]\r",buffer,cnt);
        fflush(stdout);
        buffer[cnt++] = BODY;
        if(cnt < 99)
        {
            buffer[cnt] = HEAD;
        }
        usleep(50000);
   }
    printf("\n");

}
